$(function() {
	var deviceId = $("#deviceId").val();//设备ID
	var remark = $("#remark").val();//奖品等级数字
	var giftGrade = $("#gift_grade");//奖品等级汉字
	var giftName = $("#gift_name");//奖品名称
	var status = $("#status").val();//兑奖状态

	if (remark == 1) {
		giftGrade.html("一");
		giftName.html("iPhone6s");
	} else if (remark == 2) {
		giftGrade.html("二");
		giftName.html("定制版保温杯");
	} else if (remark == 3) {
		giftGrade.html("三");
		giftName.html("定制版U盘");
	} else if (remark == 4) {
		giftGrade.html("四");
		giftName.html("指甲工具套装");
	} else if (remark == 5) {
		giftGrade.html("五");
		giftName.html("手机支架");
	} else if (remark == 6) {
		giftGrade.html("六");
		giftName.html("暖宝宝");
	} else {
		$(".gift-wrapper").css("background-image", "url(../views/activity/images/regret-bg.png)");
		$(".win-wrapper").remove();
	}
	
	if(status == 1){
		$("#expiry").html("*此验证码已兑换奖品，谢谢您的参与!");
	}
	if(status == 2){
		$("#expiry").html("*此验证码当天未兑换奖品，已失效，谢谢您的参与!");
	}
	
	$("#device_id").on("click", function(){
		alert(deviceId);
	});
});